import os

import click

from applications.common.script.initdb import init_db, creat_database


# from applications.common.script.newmodular.new import NewViewModular

# 创建数据库
def init_script(app):
    @app.cli.command()
    def init():
        init_db()

    @app.cli.command()
    def create_db():
        creat_database()
